home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2563 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.5 KB

  1. Path: seagoon.newcastle.edu.au!usenet
  2. From: mazz@faceng.newcastle.edu.au (Richard Mazzaferri)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Idle curiosity: Delphi properties in C++
  5. Date: Thu, 18 Jan 1996 01:31:13 GMT
  6. Organization: Newcastle University
  7. Message-ID: <4dk4ch$680@seagoon.newcastle.edu.au>
  8. References: <4cm1hp$mok$1@canberra.DIALix.oz.au> <L0u7wg2yqzFJ083yn@iaccess.za> <4d6rbs$5uj2@tigger.cc.uic.edu>
  9. NNTP-Posting-Host: tesla.newcastle.edu.au
  10. X-Newsreader: Forte Agent .99a.107
  11.  
  12. olczyk@sunphy1 (Thadeus Olczyk) wrote:
  13.  
  14. > Units are simply compilation units. Any language that is meant to be used 
  15. > for programs more then a thousand lines must have some version of units,
  16. > in C++ it is header/source file combinations.
  17. > The dificulty in Delphi is that the interface and implementation parts
  18. > must be held in the same file. When files get large it makes them unweildly. 
  19.  
  20. The difficulty in C++ is that there is really no concept of a unit.  Header
  21. files and source files are _not_ the same thing.  This is a contributing
  22. factor to the reason why C++ compilation is _so_ slow compared to a decent
  23. Pascal compiler - none of the public declarations from a header file can be
  24. stored in compiled form in the compiled unit file because the header could
  25. be compiled differently next time using different preprocessor definitions.
  26. This can also lead to mismatches between the way a 'unit' was compiled and
  27. the way another 'unit' references the first, as every C/C++ programmer has
  28. probably experienced.
  29.  
  30. Have fun,
  31.     Mazz.
  32. mazz@faceng.newcastle.edu.au
  33.  
  34.